package com.ecar.core.driver.entity;

import java.io.Serializable;
import java.util.Date;

public class ExceptionHandle implements Serializable {
	 private String id;

	    private String orderId;

	    private String driverId;

	    private String exceptionCause;

	    private String annotation;

	    private Date createTime;

	    private String handleResult;

	    private String backField;

	    private static final long serialVersionUID = 1L;

	    public String getId() {
	        return id;
	    }

	    public void setId(String id) {
	        this.id = id;
	    }

	    public String getOrderId() {
	        return orderId;
	    }

	    public void setOrderId(String orderId) {
	        this.orderId = orderId;
	    }

	    public String getDriverId() {
	        return driverId;
	    }

	    public void setDriverId(String driverId) {
	        this.driverId = driverId;
	    }

	    public String getExceptionCause() {
	        return exceptionCause;
	    }

	    public void setExceptionCause(String exceptionCause) {
	        this.exceptionCause = exceptionCause;
	    }

	    public String getAnnotation() {
	        return annotation;
	    }

	    public void setAnnotation(String annotation) {
	        this.annotation = annotation;
	    }

	    public Date getCreateTime() {
	        return createTime;
	    }

	    public void setCreateTime(Date createTime) {
	        this.createTime = createTime;
	    }

	    public String getHandleResult() {
	        return handleResult;
	    }

	    public void setHandleResult(String handleResult) {
	        this.handleResult = handleResult;
	    }

	    public String getBackField() {
	        return backField;
	    }

	    public void setBackField(String backField) {
	        this.backField = backField;
	    }

	    @Override
	    public boolean equals(Object that) {
	        if (this == that) {
	            return true;
	        }
	        if (that == null) {
	            return false;
	        }
	        if (getClass() != that.getClass()) {
	            return false;
	        }
	        ExceptionHandle other = (ExceptionHandle) that;
	        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
	            && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
	            && (this.getDriverId() == null ? other.getDriverId() == null : this.getDriverId().equals(other.getDriverId()))
	            && (this.getExceptionCause() == null ? other.getExceptionCause() == null : this.getExceptionCause().equals(other.getExceptionCause()))
	            && (this.getAnnotation() == null ? other.getAnnotation() == null : this.getAnnotation().equals(other.getAnnotation()))
	            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
	            && (this.getHandleResult() == null ? other.getHandleResult() == null : this.getHandleResult().equals(other.getHandleResult()))
	            && (this.getBackField() == null ? other.getBackField() == null : this.getBackField().equals(other.getBackField()));
	    }

	    @Override
	    public int hashCode() {
	        final int prime = 31;
	        int result = 1;
	        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
	        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
	        result = prime * result + ((getDriverId() == null) ? 0 : getDriverId().hashCode());
	        result = prime * result + ((getExceptionCause() == null) ? 0 : getExceptionCause().hashCode());
	        result = prime * result + ((getAnnotation() == null) ? 0 : getAnnotation().hashCode());
	        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
	        result = prime * result + ((getHandleResult() == null) ? 0 : getHandleResult().hashCode());
	        result = prime * result + ((getBackField() == null) ? 0 : getBackField().hashCode());
	        return result;
	    }
}